@import '@/styles/variables.scss';

.order-detail {
  min-height: 100vh;
  background-color: $bg-color;
  padding-bottom: 120rpx;
  
  .status-section {
    display: flex;
    align-items: center;
    padding: 40rpx 30rpx;
    background-color: $primary-color;
    color: #fff;
    
    .status-info {
      flex: 1;
      
      .status-text {
        font-size: 36rpx;
        font-weight: bold;
        margin-bottom: 10rpx;
        display: block;
      }
      
      .status-desc {
        font-size: 24rpx;
        opacity: 0.8;
      }
    }
    
    .status-image {
      width: 120rpx;
      height: 120rpx;
    }
  }
  
  .address-section {
    background-color: #fff;
    margin-bottom: 20rpx;
    padding: 30rpx;
    
    .address-title {
      display: flex;
      align-items: center;
      margin-bottom: 20rpx;
      
      .icon {
        margin-right: 10rpx;
        font-size: 32rpx;
      }
      
      .title {
        font-size: 28rpx;
        color: $text-color-primary;
        font-weight: bold;
      }
    }
    
    .address-content {
      .user-info {
        margin-bottom: 10rpx;
        
        .name {
          font-size: 30rpx;
          font-weight: bold;
          margin-right: 20rpx;
        }
        
        .phone {
          font-size: 28rpx;
          color: $text-color-secondary;
        }
      }
      
      .address-detail {
        font-size: 28rpx;
        color: $text-color-primary;
        line-height: 1.5;
      }
    }
  }
  
  .order-info-section, .products-section {
    background-color: #fff;
    margin-bottom: 20rpx;
    
    .section-title {
      font-size: 28rpx;
      color: $text-color-primary;
      font-weight: bold;
      padding: 30rpx;
      border-bottom: 1rpx solid $border-color-light;
    }
    
    .info-item {
      display: flex;
      justify-content: space-between;
      padding: 20rpx 30rpx;
      font-size: 26rpx;
      
      .label {
        color: $text-color-secondary;
      }
      
      .value {
        color: $text-color-primary;
      }
      
      .value-copy {
        display: flex;
        align-items: center;
        
        .value {
          margin-right: 20rpx;
        }
        
        .copy-btn {
          color: $primary-color;
        }
      }
    }
  }
  
  .products-section {
    .product-item {
      display: flex;
      padding: 30rpx;
      border-bottom: 1rpx solid $border-color-light;
      
      .product-image {
        width: 160rpx;
        height: 160rpx;
        border-radius: 8rpx;
        margin-right: 20rpx;
      }
      
      .product-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        
        .product-name {
          font-size: 28rpx;
          color: $text-color-primary;
        }
        
        .product-spec {
          font-size: 24rpx;
          color: $text-color-secondary;
          margin: 10rpx 0;
        }
        
        .product-price-info {
          display: flex;
          justify-content: space-between;
          
          .price {
            font-size: 28rpx;
            color: $text-color-primary;
            font-weight: bold;
          }
          
          .quantity {
            font-size: 26rpx;
            color: $text-color-secondary;
          }
        }
      }
    }
    
    .amount-info {
      padding: 20rpx 30rpx;
      
      .amount-item {
        display: flex;
        justify-content: space-between;
        font-size: 26rpx;
        color: $text-color-secondary;
        margin-bottom: 10rpx;
        
        &.total {
          font-size: 28rpx;
          color: $text-color-primary;
          margin-top: 20rpx;
          padding-top: 20rpx;
          border-top: 1rpx solid $border-color-light;
          
          .total-amount {
            color: $primary-color;
            font-weight: bold;
            font-size: 32rpx;
          }
        }
      }
    }
  }
  
  .action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100rpx;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 30rpx;
    box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
    
    .action-btn {
      margin-left: 20rpx;
      height: 70rpx;
      line-height: 70rpx;
      padding: 0 30rpx;
      border-radius: 35rpx;
      font-size: 28rpx;
      
      &.primary {
        background-color: $primary-color;
        color: #fff;
      }
      
      &.plain {
        border: 1rpx solid $primary-color;
        color: $primary-color;
        background-color: #fff;
      }
    }
  }
} 